@use '../abstracts/variables' as *;
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    /* font-size: 16px; */
    line-height: 1.7;
    color: $color-grey-dark;
    padding: 3rem;
}

.heading-primary {
    color: white;
    text-transform: uppercase;
    backface-visibility: hidden; /*解决动画中乱动的问题*/
    margin-bottom: 6rem;

    &__main{
        display: block;
        font-size: 6rem;
        font-weight: 400;
        letter-spacing: 3.5rem;

        animation-name: moveInLeft;
        animation-duration: 1s;
        animation-timing-function: ease-out;
        /*animation-delay: 2s;*/
        /*animation-iteration-count: 2;*/
    }

    &__sub{
        display: block;
        font-size: 2rem;
        letter-spacing: 1.7rem;

        /* animation-name: moveInRight;
        animation-duration: 2s;
        animation-timing-function: ease-out; */

        animation: moveInRight 1s ease-out;
    }
}

.heading-secondary { 
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    background-image: linear-gradient(to right, $color-primary-light, $color-primary-dark);
    background-clip: text; //这个设置使得背景只在文本下面显示，其他位置不显示背景
    color: transparent; //当文本透明时，文本下面的背景就出现了，这样就实现了文本颜色渐变，great！
    letter-spacing: .2rem;
    transition: all 0.2s;

    &:hover {
        transform: skewY(2deg) skewX(15deg) scale(1.1);
        text-shadow: .5rem 1rem 2rem rgba($color-black,0.2);
    }
}

.heading-tertiary {
    font-size: $default-font-size;
    font-weight: 700;
    text-transform: uppercase;
}


.paragraph {
    font-size: $default-font-size;

    &:not(:last-child){
        margin-bottom: 3rem;
    }
}
